package yogiro.to;

public class MapTO {
	private int mapNo;
	private Double mapLat;
	private Double mapLng;
	private int mapGroup;
	public MapTO(int mapNo, Double mapLat, Double mapLng, int mapGroup) {
		super();
		this.mapNo = mapNo;
		this.mapLat = mapLat;
		this.mapLng = mapLng;
		this.mapGroup = mapGroup;
	}
	public MapTO(Double mapLat, Double mapLng, int mapGroup) {
		super();
		this.mapLat = mapLat;
		this.mapLng = mapLng;
		this.mapGroup = mapGroup;
	}
	public MapTO() {
		super();
	}
	public int getMapNo() {
		return mapNo;
	}
	public void setMapNo(int mapNo) {
		this.mapNo = mapNo;
	}
	public Double getMapLat() {
		return mapLat;
	}
	public void setMapLat(Double mapLat) {
		this.mapLat = mapLat;
	}
	public Double getMapLng() {
		return mapLng;
	}
	public void setMapLng(Double mapLng) {
		this.mapLng = mapLng;
	}
	public int getMapGroup() {
		return mapGroup;
	}
	public void setMapGroup(int mapGroup) {
		this.mapGroup = mapGroup;
	}
	@Override
	public String toString() {
		return "MapTO [mapNo=" + mapNo + ", mapLat=" + mapLat + ", mapLng="
				+ mapLng + ", mapGroup=" + mapGroup + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + mapGroup;
		result = prime * result + ((mapLat == null) ? 0 : mapLat.hashCode());
		result = prime * result + ((mapLng == null) ? 0 : mapLng.hashCode());
		result = prime * result + mapNo;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MapTO other = (MapTO) obj;
		if (mapGroup != other.mapGroup)
			return false;
		if (mapLat == null) {
			if (other.mapLat != null)
				return false;
		} else if (!mapLat.equals(other.mapLat))
			return false;
		if (mapLng == null) {
			if (other.mapLng != null)
				return false;
		} else if (!mapLng.equals(other.mapLng))
			return false;
		if (mapNo != other.mapNo)
			return false;
		return true;
	}


}
